<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html lang="zh-CN">
<head>
    <!-- 系统CSS样式清空 -->
   <link rel="stylesheet" type="text/css" href="../Public/css/reset-min.css" />
    <!-- JqueryUI CSS库  -->
    <link type="text/css" href="../Public/css/custom-theme/jquery-ui-1.8.11.custom.css" rel="stylesheet">
    <!-- Jquery -->
    <script src="../Public/js/jquery.min.js" type="text/javascript"></script>
    <!-- 表格排序 -->
    <script src="../Public/js/jquery.tablesorter.min.js" type="text/javascript"></script>
    <!-- JqueryUI -->
    <script src="../Public/js/jquery-ui-1.8.11.custom.min.js" type="text/javascript"></script>
    <!-- Grid CSS框架库|布局用 -->
    <link href="../Public/css/grid.css" rel="stylesheet" />
    <!-- 俺们自己写的CSS -->
    <link href="../Public/css/style.css" rel="stylesheet" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
	<title>YEPINFO</title>
    <!-- TODO: 改成变量赋值 -->
</head>

<body>
    <div id="superheader">
        <div class="row">
            <div class="column grid_6">
               <div class="nav">
					<?php if(is_array($navs)): $i = 0; $__LIST__ = $navs;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nav): ++$i;$mod = ($i % 2 )?><div class="nav-item"><a id='<?php echo ($nav['id']); ?>' href='<?php echo ($nav['href']); ?>' <?php if ($nav['npage']) echo 'target="_blank"'; ?> ><?php echo ($nav['title']); ?></a></div><?php endforeach; endif; else: echo "" ;endif; ?>
                    
                </div>
            </div>
            <div class="column grid_3">
                <div class="info">
					<?php if ($_SESSION['login']!=1){ ?>
                    <div class="info-item" id='login'><a href="<?php echo U('Index/index');?>">登录</a> </div>
					<?php } else { ?>
					<div class="info-item" id='logout'><a href="<?php echo U('Index/logout');?>">退出</a></div>
					<div class="info-item" id='admin-info'><a href="#"><?php echo $_SESSION["name"];?>(<?php echo $_SESSION["uid"];?>)的帐号</a></div>
                    <?php } ?>
                </div>
            </div>
        </div>
    </div>
    <div id="header" class="row b-l">
        <div id="logo"><a href="<?php echo U("Index/index");?>">YEPINFO SCORE</a></div>
                <div class="column grid_7">
						<?php if(is_array($subnavs)): $i = 0; $__LIST__ = $subnavs;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nav): ++$i;$mod = ($i % 2 )?><div class="subnav">
							<div class="subnav-item"><a id='<?php echo ($nav['id']); ?>' href='<?php echo ($nav['href']); ?>' <?php if ($nav['npage']) echo 'target="_blank"'; ?> ><?php echo ($nav['title']); ?></a></div>
                    </div><?php endforeach; endif; else: echo "" ;endif; ?>
                </div>
    </div>